package faircat.android.exphone;

abstract public class ATCommand {
	public final static int RET_NONE = 0;
	public final static int RET_OK = 1;
	public final static int RET_ERROR = 2;
	public final static int RET_FINISHED = 3;
	protected int step = 0;
	public abstract String InputNext();
	public abstract int ParseReply(String line);
	
	protected boolean ATOK(String line){
		return line.trim().endsWith("OK");
	}
	protected boolean ATERROR(String line){
		return line.trim().endsWith("ERROR");
	}
}
